package com.kb.erp.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kb.erp.entity.DesignOrder;
import com.kb.erp.entity.PcbaOrder;
import com.kb.erp.excel.PcbaData;
import com.kb.erp.mapper.mysql.CadOrderMapper;
import com.kb.erp.mapper.pg.DesignOrderMapper;
import com.kb.erp.service.CadOrderService;
import com.kb.erp.service.DesignOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 订单表(DesignOrder)表服务实现类
 *
 * @author makejava
 * @since 2023-11-24 10:56:50
 */
@Service("CadOrderService")
@DS("erp_cad")
public class CadOrderServiceImpl extends ServiceImpl<CadOrderMapper, PcbaData> implements CadOrderService {
    @Resource
    private CadOrderMapper cadOrderMapper;
    @Override
    public List<PcbaData> queryListByOrderNo(String orderNo) {
        return cadOrderMapper.selectList(Wrappers.lambdaQuery(PcbaData.class).eq(PcbaData::getOrderNo, orderNo));
    }
}
